package com.store.client.fallback;

import com.carcenter.common.pojo.store.MyPageData;
import com.carcenter.common.pojo.store.SearchStoreDto;
import com.carcenter.common.pojo.store.StoreDto;
import com.carcenter.common.result.Result;
import com.store.client.StoreApi;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class StoreApiFallback implements StoreApi {

    @Override
    public Result<List<Integer>> getStoreIdsByStoreName(String storeName) {
        return Result.fail("消费降级，调用失败");
    }

    @Override
    public Result<List<StoreDto>> getStoreDtosByIds(List<Integer> storeIds) {
        return Result.fail("消费降级，调用失败");
    }

    @Override
    public Result<Integer> getStationCountByStoreId(Integer storeId) {
        return Result.fail("消费降级，调用失败");
    }

    @Override
    public Result<MyPageData> getStoreList(Integer pageNum, Integer pageSize, SearchStoreDto searchStoreDto) {
        return Result.fail("消费降级，调用失败");
    }
}
